package org.ptkparty.client.view.players;

import org.ptkparty.client.model.UserProxy;
import org.ptkparty.client.ui.CustomValueBoxEditorDecorator;

import com.google.gwt.core.client.GWT;
import com.google.gwt.editor.client.Editor;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class PlayerView extends Composite implements Editor<UserProxy> {

	private static PlayerViewUiBinder uiBinder = GWT.create(PlayerViewUiBinder.class);

	interface PlayerViewUiBinder extends UiBinder<Widget, PlayerView> {
	}

	@UiField
	@Path("nickname")
	CustomValueBoxEditorDecorator<String> nameTb;

	@UiField
	@Path("email")
	CustomValueBoxEditorDecorator<String> emailTb;

	public PlayerView() {
		initWidget(uiBinder.createAndBindUi(this));
	}

}
